#include "precompiled.h"
#include "IRenderable.h"

IRenderable::IRenderable(void)
{
}

IRenderable::~IRenderable(void)
{
	GlobalDebug::GetInstance()->DbgOut("Deleting IRenderable base destructor");
}

void IRenderable::SetOwner(GameObject* value)
{
	owner = value;
}

void IRenderable::SetPosition(float xValue, float yValue)
{
	positionX = xValue;
	positionY = yValue;
}

void IRenderable::SetRotation(float rotationValue)
{
	rotation = rotationValue;
}


float IRenderable::PositionX()
{
	return positionX;
}

float IRenderable::PositionY()
{
	return positionY;
}

// default: return this object's position
D3DXVECTOR3 IRenderable::GetCenter()
{
	D3DXVECTOR3 vector;
	vector.x = positionX;
	vector.y = positionY;
	vector.z = 1;
	return vector;
}